package club.sanmubird.travel_culture_wx_demo.global.config;

import io.github.biezhi.anima.Anima;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * @program: springboot_mysqlAndMongodb
 * @description: mysql datasourceconfig
 * @author: sam
 * @create: 2018-07-19 22:57
 * @update: 2018-07-19 22:57
 * @update: Sam
 **/
@Configuration
public class MysqlDataSourceConfig {


	@Autowired
	private DataSource dataSource;

	@Bean
	public Anima anima() {
		return new Anima(dataSource);
	}
}
